<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%>
<% request.setCharacterEncoding("utf-8"); %>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>Shop 管理中心 - 管理员资料</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<c:url value="/Admin/styles/general.css" />" rel="stylesheet" type="text/css" />
	<link href="<c:url value="/Admin/styles/main.css" />" rel="stylesheet" type="text/css" />
	<c:choose>
		<c:when test="${not empty param.suser}">
			<c:if test="${userBean==null}">
				<script language="javascript">
		            location.href="<c:url value='/servlet/UserManageServlet?suser=" + "${param.suser}" + "&fromPage=/Admin/Admin_Info.jsp&act=admininfo' />";
		        </script>
		    </c:if>
		</c:when>
		<c:otherwise>
			<script language="javascript">
				location.href="<c:url value='/Admin/Admin_List.jsp' />";
			</script>
		</c:otherwise>
	</c:choose>
  </head>
  
  <body> 
    <h1>
		<span class="action-span"><a href="<c:url value="/Admin/Admin_Info.jsp?suser=${userBean.suser}" />">资料显示</a></span>
		<span class="action-span"><a href="<c:url value="/Admin/Admin_Einfo.jsp?suser=${userBean.suser}" />">资料修改</a>&nbsp;&nbsp;</span>
		<span class="action-span"><a href="<c:url value="/Admin/Admin_Epwd.jsp?suser=${userBean.suser}" />">密码修改</a>&nbsp;&nbsp;</span>
		<span class="action-span"><a href="<c:url value="/Admin/Admin_List.jsp" />">管理员列表</a>&nbsp;&nbsp;</span>
		<span><a href="<c:url value="/Admin/Admin_Main.jsp" />">Shop 管理中心</a>  - 管理员资料 </span>
	</h1>
	<div class="main-div1">
	    <table width="100%" class="btable">
	        <tr>
	            <td><table cellspacing="0" class="tableList">
	                <tr>
	                    <th width="100">用&nbsp;户&nbsp;&nbsp;名:</th>
	                    <td>${userBean.suser}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别:</th>
	                    <td>${userBean.ssex}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th>真实姓名:</th>
	                    <td>${userBean.sname}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th width="100">出生日期:</th>
	                    <td>${userBean.dbirth}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th>电子邮箱:</th>
	                    <td>${userBean.semail}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th>电话号码:</th>
	                    <td>${userBean.sphone}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th>地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址:</th>
	                    <td>${userBean.saddress}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编:</th>
	                    <td>${userBean.scode}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th>注册时间:</th>
	                    <td>${userBean.dregdate}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th>最后登陆:</th>
	                    <td>${userBean.dlastdate}&nbsp;</td>
	                </tr>
	                <tr>
	                    <th>登陆次数:</th>
	                    <td>${userBean.nlogin}&nbsp;</td>
	                </tr>
	            </table></td>
	        </tr>
	    </table>
	</div>
	<div id="footer">版权所有 &copy;</div>
  </body>
</html>
